package com.woniuxy.services;

import com.woniuxy.entitys.Company;

import java.util.List;
import java.util.Map;

public interface CompanyService {

    //查询所有客户（公司）信息
    public List<Company> getAllCompanies();

    public Company selectByPrimaryKey(Integer com_id);

    public Integer updateByPrimaryKey(Company company);

    Integer insertSelective(Company company);

    public Integer updStatus(String com_status, String com_id);

    List<Company> search(String com_name);

    //根据满意度分组查询公司数量
    List<Map<String,Integer>> getCountBySatisfy();

    //根据信用度分组查询公司数量
    List<Map<String, Integer>> getCountByCredit();

    //获取所有已流失客户信息
    List<Company> getAllLostCompanies();
}
